package com.imooc.event;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class DemoListener2 {

    @EventListener
    public void test(DemoEvent event) {
        System.out.println("------------DemoListener2");
        System.out.println("收到了: " + event.getSource());
    }
}
